﻿#ifndef __SLIDE_SWITCH__
#define __SLIDE_SWITCH__


#include "gd32f10x.h"
#include <stdbool.h>


#define CPL_GND 0
#define CPL_AC  1
#define CPL_DC  2

#define SEN1_1V    0
#define SEN1_100mV 1
#define SEN1_10mV  2

#define SEN2_x5  0
#define SEN2_x2  1
#define SEN2_x1  2


typedef struct
{
    uint8_t cpl;  /*!< 耦合选择开关逻辑值 */
    uint8_t sen1; /*!< 满量程选择开关逻辑值 */
    uint8_t sen2; /*!< 增益倍数选择开关逻辑值 */
} SlideSwitch_t;


void SlideSwitchGetValue(SlideSwitch_t *logicValue);


#endif // !__SLIDE_SWITCH__
